<template>
 <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column
        prop="num"
        label="编号"
        width="180">
      </el-table-column>
      <el-table-column
        prop="name"
        label="名称"
        width="180">
      </el-table-column>
      <el-table-column
        prop="type"
        label="类型">
      </el-table-column>
          <el-table-column label="操作">
      <template slot-scope="scope">
        <el-button
          size="mini"
          type = "primary"
           plain = "true"
          @click="handleEdit(scope.$index, scope.row)">录入</el-button>
          <el-button 
           size="mini"
          type = "primary"
           plain = "true"
          > 
          <a href="https://paper-final-1257740221.cos.ap-nanjing.myqcloud.com/%E5%B9%BF%E5%8F%91%E6%A8%A1%E6%9D%BF.xls">excel模板下载</a>
          </el-button>
         
      </template>
    </el-table-column>
    </el-table>
</template>

<script>
export default {
   data() {
        return {
          tableData: [{
            num: 'N00001',
            name: '广发文书',
            type: 'GDB',
            path: '/information_gdb_gdb'
          }, 

   
          ]
        }
      },
          methods: {
      handleEdit(index, row) {
        console.log(index, row);
        console.log(row.path)
        this.$router.push(row.path)
      },

    }

}
</script>

<style>

</style>